package org.wenhua.yuan.and.demo

import android.os.Bundle
import android.widget.Toast
import kotlinx.android.synthetic.main.activity_main_preload.*
import org.wenhua.preloadlib.activity.BasePreloadActivity
import org.wenhua.yuan.R

class MainBasePreloadActivity : BasePreloadActivity() {

    override fun getResId(): Int {
        return R.layout.activity_main_preload
    }

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState) // 不能完全重写父类onCreate方法

        // 点击布局 R.layout.activity_main_preload 中 按钮
        attempt_btn.setOnClickListener {
            Toast.makeText(this, "立即体验", Toast.LENGTH_SHORT).show()
        }
    }

    override fun onStart() {
        super.onStart()
    }
}
